package com.ruicar.afs.cloud.workflow.api.constant;

import com.ruicar.afs.cloud.common.datasync.define.DataLevel;
import com.ruicar.afs.cloud.common.datasync.define.Key;
import lombok.experimental.UtilityClass;

import java.text.MessageFormat;

@UtilityClass
public class FlowConstant {
    public Key FLOW_MAPPING_SYNC_KEY = Key.builder().dataLevel(DataLevel.SYSTEM).key("p-flow-mapping").build();

    public String templateKey(String serviceId, String bizDataId) {
        return MessageFormat.format("workflow-biz-data:{0}:{1}", serviceId, bizDataId);
    }

    public String FLOW_EXCEPTION_DESC_KEY="_afs_flow_exception_desc";
}
